Waste Makes Haste: Tight Bounds for Loose Parallel Sorting
نویسندگان
چکیده
Conventional parallel sorting requires the n input keys to be output in an array of size n, and is known to take fl(log n/log log n) time using any polynomial number of processors. The lower bound does not apply to the more "wasteful" convention of padded sorting, which requires the keys to be output in sorted order in an array of size (1 + o(1))n. We give very fast randomized CRCW PRAM algorithms for several padded-sorting problems. Applying only pairwise comparisons to the input and using kn processors, where 2 :s; k :s; n, we can padded-sort n keys in O(logn/logk) time with high probability (whp), which is the best possible (expected) run time for any comparison-based algorithm. We also show how to padded-sort n independent random numbers in O(log*n) time whp with O(n) work, which matches arecent lower bound, and how to padded-sort n integers in the range 1 .. n in constant time whp using n processors. If the integer sorting is required to be stable, we can still solve the problem in o (log log n/log k) time whp using kn processors, for any k with 2 :s; k :s; log n. The integer sorting results require the nonstandard OR PRAM; alternative implementations on standard PRAM variants run in O(log log n) time whp. As an application of our padded-sorting algorithms, we can solve approximate prefix summation problems of size n with O(n) work in constant time whp on the OR PRAM, and in O(loglog n) time whp on standard PRAM variants.
منابع مشابه
Computing with Noisy Information
This paper studies the depth of noisy decision trees in which each node gives the wrong answer with some constant probability. In the noisy Boolean decision tree model, tight bounds are given on the number of queries to input variables required to compute threshold functions, the parity function and symmetric functions. In the noisy comparison tree model, tight bounds are given on the number of...
متن کاملTight Comparison Bounds on the Complexity of Parallel Sorting
The problem of sorting n elements using p processors in a parallel comparison model is considered. Lower and upper bounds which imply that for p ≥ n, the time complexity of this problem is Θ( log( 1 + p / n) logn _ __________ ) are presented. This complements [AKS-83] in settling the problem since the AKS sorting network established that for p≤n the time complexity is Θ( p nlogn _ _____ ). To p...
متن کاملApproximate compaction and padded - sortingon
Padded-sorting is a task of placing input items in an array in a nondecreasing order, but with free space between consecutive elements allowed. For many applications, padded-sorting is as useful as sorting. Approximate compaction and compression are closely related problems. It is known that time complexity of padded-sorting on randomized CRCW PRAMs is dramatically lower than time complexity of...
متن کاملApproximate Compaction and Padded-Sorting on Exclusive Write PRAMs
Padded-sorting is a task of placing input items in an array in a nondecreasing order, but with free space between consecutive elements allowed. For many applications, paddedsorting is as useful as sorting. Approximate compaction and compression are closely related problems. It is known that time complexity of padded-sorting on randomized CRCW PRAMs is considerably lower than time complexity of ...
متن کاملLower bounds for kinetic sorting
Let S be a set of n points moving on the real line. The kinetic sorting problem is to maintain a data structure on the set S that makes it possible to quickly generate a sorted list of the points in S, at any given time. We prove tight lower bounds for this problem, which show the following: with a subquadratic maintenance cost one cannot obtain any significant speed-up on the time needed to ge...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1992